# -*- coding: utf-8 -*-
# !/usr/bin/env python
from components.resource_management.host_manage.dao import get_host_resource_user
from utils.views import ReturnClass


class RemoteInstallation():
    def intsall(self, host_id, resource_user_permission_code='', soft_id=''):
        host_resource_user = get_host_resource_user(host_id, resource_user_permission_code)
        if len(host_resource_user) == 0:
            return ReturnClass.return_bust('操作用户没有找到，未设置默认用户，或绑定用户不存在')

        host_resource_user
